﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using ClientMobile.SSVService;
using googlemaps;

namespace ClientMobile
{
    public partial class mission : PhoneApplicationPage
    {
        public mission()
        {
            InitializeComponent();
            Singleton s = Singleton.Instance;
            Service1SoapClient ser = new Service1SoapClient();
            ser.AfficherListeMissionChauffeurCloturéeCompleted += new EventHandler<AfficherListeMissionChauffeurCloturéeCompletedEventArgs>(ser_AfficherListeMissionChauffeurCloturéeCompleted);
            ser.AfficherListeMissionChauffeurCloturéeAsync(s.Chauff.id_chauffeur);
        }

        void ser_AfficherListeMissionChauffeurCloturéeCompleted(object sender, AfficherListeMissionChauffeurCloturéeCompletedEventArgs e)
        {
            listBox.DataContext = e.Result;
        }
    }
}